<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Login</title>
<style>
@import url(css/main.css);
</style>
</head>
<body id="back">

	<div id="allContainer">
		<p>
			<br></br>
		</p>
		<div id="container">
			<div id="loginLeft">
				<img src="img/swimScritta.gif" align="right" />
			</div>
			<div id="loginRight">

				<form id="loginForm" action="LoginServlet" method="post">
					<h1 id="loginTitle">Welcome to SWIM</h1>
					<%
						if (request.getAttribute("loginFailed") != null) {
					%>
					<h1 id="failed">Wrong username or password.</h1>
					<%
						}
					%>
					<label id="loginLabel">Username</label> <input type="text"
						id="textInput" name="username" /> <label id="loginLabel">Password</label>
					<input type="password" id="textInput" name="password" /> <label
						id="loginLabel"><a href="Registration.jsp" id="linkRef">Register</a></label>
					<input type="submit" id="submitInput" name="submit" value="Login" />

				</form>
			</div>
		</div>
		<div id="secondContainer">
			<p>
				<br></br>
			</p>
			<label id="normalLabel"><a
				href="MainServlet?to=NotRegSearchHelp" id="linkRef">Search help</a>
				without registration.</label>
		</div>
	</div>
</body>
</html>